<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>文件上传</title>
    <link rel="stylesheet" href="css/dropUpload.css" />
  </head>
  <body>
    <h5>单文件上传</h5>
    <input type="file" id="singleFileUpload" />
    <button id="submitSingle" onclick="uploadSingleFile()">上传文件</button>

    <h5>多文件上传</h5>
    <input id="multipleFileUpload" type="file" accept="image/*" multiple />
    <button id="submitMultiple" onclick="uploadMultipleFile()">上传文件</button>

    <h5>拖拽上传</h5>
    <div id="dropArea">
      <div id="imagePreview"></div>
    </div>
    <button id="submitDrop" onclick="uploadDropFile()">上传文件</button>

    <!-- 单文件上传 -->
    <script src="js/singleFileUpload.js"></script>
    <!-- 多文件上传 -->
    <script src="js/multipleFileUpload.js"></script>
    <!-- 拖拽上传 -->
    <script src="js/dropUpload.js"></script>
  </body>
</html>
